import request from '@/utils/request'

// 查询活动人员列表
export function listActivityUser(query) {
  return request({
    url: '/system/activityUser/list',
    method: 'get',
    params: query
  })
}

// 查询活动人员详细
export function getActivityUser(id) {
  return request({
    url: '/system/activityUser/' + id,
    method: 'get'
  })
}

// 新增活动人员
export function addActivityUser(data) {
  return request({
    url: '/system/activityUser',
    method: 'post',
    data: data
  })
}

// 修改活动人员
export function updateActivityUser(data) {
  return request({
    url: '/system/activityUser',
    method: 'put',
    data: data
  })
}

// 删除活动人员
export function delActivityUser(id) {
  return request({
    url: '/system/activityUser/' + id,
    method: 'delete'
  })
}
